﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace StudentLib
{

    class TransferStudent : Student  
    {
        private string PreviousCollegeName
        {
            get { return previousCollegeName; }
            set
            {
                previousCollegeName = value;
            }
        }

        public TransferStudent(bool isforWeb) : base(isforWeb)
        {

        }

        public TransferStudent(string previousCollegeName, bool isforWeb)
            : base(isforWeb)
        //overload constructor 
        {
            this.previousCollegeName = previousCollegeName;
        }

        public override string MailingLabel()
        {
            string label = base.MailingLabel();
            label += GetLineBreak() + previousCollegeName;

            return label;
        }


        public string previousCollegeName { get; set; }
    }
}